<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
 
<html>
	<head>
	    <title>Add New User Form</title>
	</head>
	<body>
		<f:view>
	        <p>
	            <h:message id="errors" for="User_ID" style="color:red"/>
	        </p>
		    <h:form>
		        <h:panelGrid border="1" columns="2">
		            <h:outputText value="ID"/>
		            <h:inputText id="User_ID" value="#{userBean.id}" required="true">
		                <f:validateLongRange minimum="1" maximum="500"/>
		            </h:inputText>
		            <h:outputText value="Name"/>
		            <h:inputText value="#{userBean.name}"/>
		            <h:commandButton action="#{userBean.addUser}" value="Add Customer"/>
		        </h:panelGrid>
		    </h:form>
		</f:view>
	</body>
</html>